% -------------------------------------------------
% Another NSFC LaTeX template.
% Latest version: https://github.com/YimianDai/NSFC-LaTeX
% Latest document: http://lowrank.science/NSFC-LaTeX/
% Yimian Dai, Feb. 2017. Questions? yimian.dai@gmail.com ;
%
% Thank Prof. Mingming Chen for his pioneer work. 
% http://bbs.ctex.org/forum.php?mod=viewthread&tid=153098&extra=page%3D1
% -------------------------------------------------






% Cite mark [1] on the top right
% \newcommand{\citetop}[1]{\textsuperscript{\cite{#1}}}

% enumitem command


% \setlength{\parskip}{0.5\baselineskip}

% xcolor command
\definecolor{NsfcBlue}{RGB}{0, 112, 192}

% setspace command
% \setstretch{1.5} % 22 bp / 14 pt = 1.571

% For bule regular 14 bp NSFC words 
\newcommand{\NsfcNote}[1]{\textcolor{NsfcBlue}{{\zihao{4}{{\kaishu #1}}}}}
\newcommand{\alert}[1]{\textcolor{NsfcBlue}{{\zihao{4}{{\bfseries \kaishu #1}}}}}

% For the chapter name like （一）立项依据与研究内容（4000-8000字）
\newcommand{\NsfcChapter}[2]{   
  \begingroup
    \setcounter{section}{0}  
    % \setlength{\parskip}{0.5\baselineskip}
    % For xelatex
    \setlength{\baselineskip}{22bp}
    \indent {\bfseries \NsfcNote{#1}}\NsfcNote{\setmainfont{KaiTi}#2} \vspace{9bp}%
    % For pdflatex
    % \indent {\bfseries \NsfcNote{#1}}\NsfcNote{#2} %
  \endgroup
}

% For the section name like 2．项目的研究内容、研究目标，以及拟解决的关键科学问题（此部分为重点阐述内容）；
\newcommand{\NsfcSection}[3]{   
  \setcounter{section}{#1}
  \setcounter{subsection}{0}
  % For xelatex
  \indent \NsfcNote{\setmainfont{KaiTi} #1．}{\bfseries\NsfcNote{#2}}\NsfcNote{#3}%
  % For pdflatex
  % \indent \NsfcNote{#1．}{\bfseries\NsfcNote{#2}}\NsfcNote{#3} %
}

% \renewcommand{\maketitle}{
%   \begingroup    
%     \begin{center} 
%       \setlength{\baselineskip}{22bp}
%       \zihao{2} \bfseries \@title \vspace{0.5\baselineskip}
%     \end{center} 
%   \endgroup
% }

\renewcommand\refname{
  \textcolor{black}{\hskip 2pt \zihao{-4}\songti{参考文献}}
}

% \setlength{\baselineskip}{22pt}

% Prof. Mingming Chen's definition on subsection
\def\cvprsubsection{\@startsection {subsection}{2}{\z@}
   {11pt plus 2pt minus 2pt}{6pt} {\indent \bfseries \songti}}
\def\cvprssubsect#1{\cvprsubsection*{#1}}
\def\cvprsubsect#1{\cvprsubsection{\hskip -1em.~#1 \vspace{-0.2em}}}
\def\subsection{\@ifstar\cvprssubsect\cvprsubsect}

